%{
#include <stdio.h>
int	line_no = 1;
%}

delim	[\t]
ws	{delim}+
letter	[a-zA-Z]
pfix	[a-zA-Z0-9]
digit	{0-9}+
identifier	{pfix}+

%%

{ws}	{}
{identifier}	{return IDENTIFIER;}
main	{retuen MAIN;}
doc	{return DOC;}
label	{return LEBEL;}
pic	{return PIC;}
obj	{return OBJ;}
for	{return FOR;}
setsize	{return SETSIZE;}
setfont	{return SETFONT;}
setfontsize	{return SETFONTSIZE;}
path	{return PATH;}
dist	{return DIST;}
position	{return POSITION;}
direction	{return DIRECTION;}
angle	{return ANGLE;}
distance	{return DISTANCE;}
to	{return TO;}
inner	{return INNER;}
left	{return LEFT;}
middle	{return MIDDLE;}
right	{return RIGHT;}
top	{return TOP;}
down	{return DOWN;}
from	{return FROM;}
content	{return CONTENT;}
return	{return RETURN;}
default	{return DEFAULT;}
font	{return FONT;}
size	{return SIZE;}
type	{return TYPE;}
container	{return CONTAINER;}
poly	{return POLY;}
letout	{return LETOUT;}
z_axis	{return ZAXIS;}

"@"	{return AT;}
"&&"	{return AND;}
"||"	{return OR;}
"w/"	{return WITH;}
"#"	{return ;}
"_"	{return UNDERLINE;}
"="	{return ASSIGN;}
"=="	{return EQUAL;}
"!="	{return NOTEQ}
"."	{return DOT;}
">="	{return GE;}
">"	{return GT;}
"["	{return LBRAC;}
"<="	{return LE;}
"<"	{return LT;}
"("	{return LPAREN;}
"-"	{return MINUS;}
"+"	{return PLUS;}
"]"	{return RBRAC;}
")"	{return RPAREN;}
";"	{return SEMICOLON;}
"/"	{return SLASH;}
"*"	{return STAR;}
"?"	{return IF;}
"%"	{return MOD;}
"{"	{return LCURL;}
"}"	{return RCURL;}
","	{return COMMA;}

\n	{line_no++;
return yytext[0];}


%%

int main(inr argc, char *argv[])
{
	yyin = fopen(argv[1],"r");
	yylex();
	print("ya!");
}

int yywrap()
{
	return 1;
}
